package com.yl.pattern.behavioralmodel.strategy;

/**
 * @Author 小羊
 * @Date 31/10/2024下午 3:52
 * @ClassName Client
 * @Description Client
 */
public class Client {
    public static void main(String[] args) {
        SalesMan salesMan = new SalesMan(new StrategyA());
        salesMan.salesManShow();

        salesMan.setStrategy(new StrategyB());
        salesMan.salesManShow();
    }
}
